<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//演示地址 http://lar56demo.ifzf.com/
//登录 登出
Route::get('logout.html','UserController@logout')->name('LogOut');
Route::get('login.html','UserController@login')->name('Login');
//登录验证
Route::any('login/store.html','UserController@login_store')->name('UserloginTo');
//注册
Route::get('register.html','UserController@register')->name('Register');
Route::any('register/store.html','UserController@register_store')->name('UserRegisterTo');
Route::get('register_mobile.html','UserController@register_store_mobile')->name('RegisterToMobile');
Route::put('register_to_code_mobile.html','UserController@register_to_mobile')->name('RegisterToMobileCode');
Route::any('mobile_to_passworld.html','UserController@mobile_store_passworld')->name('MobileToPassworld');
Route::any('mobile_to_code.html','UserController@mobile_to_code')->name('MobileToPassworldCode');


Route::any('create.html','ValidateCodeController@create')->name('ValidateCodeCreate');

/*管理员*/
Route::prefix('manager')->group(function () {
    //欢迎
    Route::get('welcome.html','WelcomeController@index')->name('Welcome');
    //修改密码
    Route::get('passworld_update.html','UserController@passworld_update')->name('Passworld_update');
    Route::any('passworld_update_store.html','UserController@passworld_update_store')->name('Passworld_update_store');


});




Route::get('/', function () {
    return view('welcome');
});
